/*
 * Copyright 2014 JootMir Project
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * Support: http://www.jootmir.org
 */
package org.jootmir.client.core.texture;

/**
 * 接口 - 纹理贴图
 * 
 * @author ShawRyan
 *
 */
public interface Texture {

	/**
	 * 获取纹理索引
	 * 
	 * @return 索引，全局唯一整形
	 */
	public Integer getTextureRef();

	/**
	 * 绑定纹理到OpenGL上下文
	 */
	public void bind();

	/**
	 * 释放纹理引用
	 */
	public void release();

	/**
	 * 获取纹理高度
	 *
	 * @return 图片高度
	 */
	public int getHeight();

	/**
	 * 获取纹理宽度
	 *
	 * @return 图片宽度
	 */
	public int getWidth();

	/**
	 * 获取纹理ID
	 * 
	 * @return 纹理ID
	 */
	public int getTextureID();

}